<template>
        <a href="#">
            <product-title :importantT="product.importantT"></product-title>
            <img :src="product.imgsrc" alt="">
            <p class="l_title">{{product.name}}</p>
            <span class="m_title">{{product.title}}</span>
            <span class="m_details">{{product.details}}</span>
            <p class="m_price">
                <span>{{product.nprice}}</span>
                <span>{{product.price}}</span>
            </p>
            <product-evaluate :evaluate="product.evaluate"></product-evaluate>
        </a>
</template>
<script>
    import Product_title from './Product_title';
    import Product_evaluate from './Product_evaluate';
    export default{
        components:{
            'product-title':Product_title,
            'product-evaluate':Product_evaluate
        },
        props:['product']
    }
</script>
<style scoped>
.phone_product .right_list img{
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
    top: 20px;
}
.phone_product .right_list .l_title{
    width: 100%;
    text-align: center;
    position: relative;
    top:25px;
}
.phone_product .right_list .m_title{
    position: relative;
    top:30px;
}
.phone_product .right_list .m_details{
    position: relative;
    top:30px;
}
.phone_product .right_list .m_price{
    position: relative;
    top:30px;
}

.m_title{
    display: block;
    width: 194px;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 20px 3px;
    color: #212121;
}
.m_details{
    display: block;
    width: 230px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    margin: 0 auto 12px;
    color: #b0b0b0;
}
.m_price{
   width: 230px;
   text-align: center;
}
.m_price>span:first-child{
    color: #ff6709;
    font-size: 14px;
}
.m_price>span:last-child{
    font-size: 14px;
    text-decoration: line-through;
    color: #b0b0b0;
    margin-left: 5px;
}
</style>

